package com.a2.a2BDD;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.TextView;

public class A2AcercaDe extends Activity {
	
	/*** VARIABLES ***/	
	private static TextView    titulo_main         = null; //textview
	private static TextView    name_program        = null;
	private static TextView    copyright_program   = null;	
	private static TextView    titulo_version      = null;
	private static TextView    version             = null;
	private static TextView    titulo_copyr        = null;	
	private static TextView    copyr               = null;
	private static TextView    titulo_paginaweb    = null;
	private static TextView    paginaweb           = null;
	private static TextView    titulo_mail         = null;
	private static TextView    mail                = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.a2acerca_de);		
		
		//textviews
		titulo_main         = (TextView) findViewById(R.id.textview_titulo);		
		name_program        = (TextView) findViewById(R.id.TextView_AppName);		
		copyright_program   = (TextView) findViewById(R.id.textView_CR);		
		titulo_version      = (TextView) findViewById(R.id.textview_version);		
		version             = (TextView) findViewById(R.id.textview_version2);		
		titulo_copyr        = (TextView) findViewById(R.id.Textview_copyr1);		
		copyr               = (TextView) findViewById(R.id.Textview_copyr2);
		titulo_paginaweb    = (TextView) findViewById(R.id.Textview_web);
		paginaweb           = (TextView) findViewById(R.id.Textview_web2);
		titulo_mail         = (TextView) findViewById(R.id.Textview_mail);
		mail                = (TextView) findViewById(R.id.Textview_mail2);		
		
		//tipo de letra
		titulo_main.setTypeface(VariablesConstantesBD.externalFont_2);
		name_program.setTypeface(VariablesConstantesBD.externalFont_1);
		copyright_program.setTypeface(VariablesConstantesBD.externalFont_2);	
		titulo_version.setTypeface(VariablesConstantesBD.externalFont_1);
		version.setTypeface(VariablesConstantesBD.externalFont_2);
		titulo_copyr.setTypeface(VariablesConstantesBD.externalFont_1);	
		copyr.setTypeface(VariablesConstantesBD.externalFont_2);
		titulo_paginaweb.setTypeface(VariablesConstantesBD.externalFont_1);
		paginaweb.setTypeface(VariablesConstantesBD.externalFont_2);
		titulo_mail.setTypeface(VariablesConstantesBD.externalFont_1);
		mail.setTypeface(VariablesConstantesBD.externalFont_2);
		//paginaweb.setMovementMethod(LinkMovementMethod.getInstance());
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		//getMenuInflater().inflate(R.menu.a2acerca_de, menu);
		return true;
	}
	
	@Override
	public void onBackPressed() {
				
		Intent intentfin = new Intent();	    	    	
		Bundle paquete   = new Bundle();
			  
		paquete.putInt("ACTIVITY", 99);				
		intentfin.putExtras(paquete);			  
		setResult(RESULT_OK,intentfin);
				
		finish();	 
	   
	}
	 
	
	
	
	

}
